//
//  TGMBasePullToRefreshHandler.h
//  TravelGuideMdd
//
//  Created by HanFeng on 3/12/14.
//  Copyright (c) 2014 mafengwo.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TGMModel2ScrollViewAdapter.h"
#import "UIScrollView+TGMPullToRefresh.h"

#define MFWClick_EventCode_pull_to_refresh @"mfwsdk_pull_to_refresh"
#define MFWClick_EventKey_ptr_page @"page"
#define MFWClick_EventKey_ptr_type @"type"
#define MFWClick_EventKey_ptr_by_user @"by_user"
#define MFWClick_EventKey_ptr_id @"id"

@class TGMModel2ScrollViewAdapter;

@interface TGMBasePullToRefreshHandler : NSObject <TGMPullToRefreshDelegate>

@property (nonatomic, weak) TGMModel2ScrollViewAdapter *viewAdapter;

- (void)loadResources;

- (BOOL)stopAnimationManually:(BOOL)refreshSuccess; // return NO by default

@end
